
<p-dialog [(visible)]="display" modal="modal"  [responsive]="true" [width]="width" (onHide)="closeViewDetailMask(false)" class="zktz">
  <p-header>
    {{title}}
  </p-header>
  <form class="form-horizontal zktz-equipment-add-or-update-device ui-fluid" #form="ngForm" novalidate (submit)="form.valid&&formSubmit(false)">
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备编码</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"  required minlength="9" name="inputUserName"
               [(ngModel)]="currentAsset.ano"
                disabled>
      </div>
      <label  class="col-sm-2 control-label">从属于</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="father"
               [(ngModel)]="currentAsset.father"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">所在槽位</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"   name="card_position"
               [(ngModel)]="currentAsset.card_position" disabled>
      </div>
      <label  class="col-sm-2 control-label">固定资产编码</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="asset_no"
               [(ngModel)]="currentAsset.asset_no"
               placeholder="固定资产编码" disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备名称</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"  name="name"
               [(ngModel)]="currentAsset.name"
               placeholder="设备名称" disabled>
      </div>

      <label  class="col-sm-2 control-label">英文命名</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="en_name"
               [(ngModel)]="currentAsset.en_name"
               placeholder="英文命名" disabled >
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备品牌</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="brand"
               [(ngModel)]="currentAsset.brand"
               disabled >
      </div>
      <label  class="col-sm-2 control-label">设备型号</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="modle"
               [(ngModel)]="currentAsset.modle"
                 disabled>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">设备主要功能</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="function"
               [(ngModel)]="currentAsset.function"
               disabled>
      </div>
      <label class="col-sm-2 control-label">设备所属系统</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="system"
               [(ngModel)]="currentAsset.system"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备状态</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="status"
               [(ngModel)]="currentAsset.status"
               disabled>
      </div>
      <label  class="col-sm-2 control-label">设备上线日期</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="on_line_datetime"
               [(ngModel)]="currentAsset.on_line_datetime"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备尺寸</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="size"
               [(ngModel)]="currentAsset.size"
               disabled>
      </div>
      <label class="col-sm-2 control-label">设备所在机房</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="room"
               [(ngModel)]="currentAsset.room"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备安装机架</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="cabinet"
               [(ngModel)]="currentAsset.cabinet"
               disabled>
      </div>
      <label  class="col-sm-2 control-label">设备安装位置</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="location"
               [(ngModel)]="currentAsset.location"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备所属部门</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="belong_dapart"
               [(ngModel)]="currentAsset.belong_dapart"
               disabled>
      </div>
      <label  class="col-sm-2 control-label">设备所属部门管理人</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="belong_dapart_manager"
               [(ngModel)]="currentAsset.belong_dapart_manager"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备所属部门管理人手机号码</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="belong_dapart_phone"
               [(ngModel)]="currentAsset.belong_dapart_phone"
               disabled>
      </div>
      <label class="col-sm-2 control-label">管理部门</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="manage_dapart"
               [(ngModel)]="currentAsset.manage_dapart"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">管理人</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="manager"
               [(ngModel)]="currentAsset.manager" disabled>
      </div>
      <label  class="col-sm-2 control-label">管理人手机号码</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="manager_phone"
               [(ngModel)]="currentAsset.manager_phone" disabled>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">用电等级</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="power_level"
               [(ngModel)]="currentAsset.power_level" disabled>
      </div>
      <label  class="col-sm-2 control-label">供电类型</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="power_type"
               [(ngModel)]="currentAsset.power_type" disabled>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">额定功率</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="power_rate"
               [(ngModel)]="currentAsset.power_rate"
               disabled >
      </div>
      <label class="col-sm-2 control-label">电源插头类型</label>
      <div class="col-sm-4">
        <input  type="text" class="form-control" [(ngModel)]="currentAsset.plug_type" name="plug_type" disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">电源数量</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"  required
               name="power_count"
               [(ngModel)]="currentAsset.power_count"
               disabled>
      </div>
      <label class="col-sm-2 control-label">电源冗余模式</label>
      <div class="col-sm-4" >
        <input  class="form-control" [(ngModel)]="currentAsset.power_redundant_model" name="power_redundant_model" disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">供电来源</label>
      <div class="col-sm-4" >
        <input class="form-control" [(ngModel)]="currentAsset.power_source" name="power_source" disabled >
      </div>
      <label  class="col-sm-2 control-label">电源插孔位置1</label>
      <div class="col-sm-4" >
        <input class="form-control" [(ngModel)]="currentAsset.power_jack_position1" name="power_jack_position1" disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">电源插孔位置2</label>
      <div class="col-sm-4" >
        <input class="form-control" [(ngModel)]="currentAsset.power_jack_position2" name="power_jack_position2"disabled>
      </div>
      <label class="col-sm-2 control-label">电源插孔位置3</label>
      <div class="col-sm-4" >
        <input class="form-control" [(ngModel)]="currentAsset.power_jack_position3" name="power_jack_position3"disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">电源插孔位置4</label>
      <div class="col-sm-4" >
        <input  class="form-control" [(ngModel)]="currentAsset.power_jack_position4" name="power_jack_position4"disabled>
      </div>
      <label class="col-sm-2 control-label">设备管理IP</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="ip"
               [(ngModel)]="currentAsset.ip"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">操作系统</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="operating_system"
               [(ngModel)]="currentAsset.operating_system"
               disabled>
      </div>
      <label  class="col-sm-2 control-label">设备上联设备</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="up_connect"
               [(ngModel)]="currentAsset.up_connect"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">设备下联设备</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control"
               name="down_connects"
               [(ngModel)]="currentAsset.down_connects"
               disabled>
      </div>
      <label  class="col-sm-2 control-label">设备维保厂家</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="maintain_vender"
               [(ngModel)]="currentAsset.maintain_vender"
               disabled>
      </div>
    </div>
    <div class="form-group">
      <label  class="col-sm-2 control-label">维保厂家联系人</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="maintain_vender_people"
               [(ngModel)]="currentAsset.maintain_vender_people"
               disabled>
      </div>
      <label for="maintain_vender_phone" class="col-sm-2 control-label">维保厂家联系电话</label>
      <div class="col-sm-4" >
        <input type="text" class="form-control" id="maintain_vender_phone"
               name="maintain_vender_phone"
               [(ngModel)]="currentAsset.maintain_vender_phone"
               disabled >
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">维保开始时间</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="maintain_starttime"
               [(ngModel)]="currentAsset.maintain_starttime"
               disabled >
      </div>
      <label  class="col-sm-2 control-label">维保结束时间</label>
      <div class="col-sm-4">
        <input type="text" class="form-control"
               name="maintain_endtime"
               [(ngModel)]="currentAsset.maintain_endtime"
               disabled >
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">用途说明</label>
      <div class="col-sm-4" >
        <textarea pInputTextarea name="function_info" [(ngModel)]="currentAsset.function_info" placeholder="备注" disabled></textarea>
      </div>
      <label class="col-sm-2 control-label">备注</label>
      <div class="col-sm-4" >
        <textarea pInputTextarea name="remarks" [(ngModel)]="currentAsset.remarks" placeholder="备注" disabled></textarea>
      </div>
    </div>
    <p-footer>
      <button type="submit" pButton label="关闭" class="ui-button" (click)="closeViewDetailMask(false)"></button>
    </p-footer>
  </form>
</p-dialog>
